#!/usr/bin/python2.7
#coding:UTF-8
import requests
import re
import sys
reload(sys)
sys.setdefaultencoding('UTF-8')

def ShowCity():
	html = requests.get("http://www.tianqihoubao.com/weather/province.aspx?id=420000")
	citys = re.findall('<td style="height: 22px" align="center"><a href="(.*?)">',html.text,re.S)
	for city in citys:
		print city

def main():
	ShowCity()

if __name__=='__main__':
	main()

